//
//  LCAccountManager.m
//  JK登录注册
//
//  Created by jiukuyinyue on 2017/8/12.
//  Copyright © 2017年 LC. All rights reserved.
//

#import "LCAccountManager.h"
#import "NSString+MD5.h"
//#import "UserInfo.h"



@implementation LCAccountManager

IMPLEMENTATION_SINGLETON(LCAccountManager)


-(void)setUseruid:(NSInteger)useruid{
    [[NSUserDefaults standardUserDefaults] setInteger:useruid forKey:USERUID];
}

-(NSInteger)useruid{
    NSInteger uid = [[NSUserDefaults standardUserDefaults] integerForKey:USERUID];
    return uid;
}

-(void)setUserName:(NSString *)userName{
    [[NSUserDefaults standardUserDefaults] setObject:userName forKey:@"USERNAME"];
}

-(NSString *)userName{
    return [[NSUserDefaults standardUserDefaults] objectForKey:@"USERNAME"];
}

-(void)setUserPicUrl:(NSString *)userPicUrl{
    [[NSUserDefaults standardUserDefaults] setObject:userPicUrl forKey:@"USERPICURL"];
}

-(NSString *)userPicUrl{
    return [[NSUserDefaults standardUserDefaults] objectForKey:@"USERPICURL"];
}


@end
